﻿using System.ComponentModel.DataAnnotations;

namespace TestWebApplication.Models.Forms
{
    public class LogonForm
    {
        [Required(ErrorMessage = "Не указан логин")]
        [Display(Name = "Логин")]
        [StringLength(20, ErrorMessage = "Слишком длинный логин")]
        public string LoginName { get; set; }

        [Required(ErrorMessage = "Не указан пароль")]
        [DataType(DataType.Password)]
        [Display(Name = "Пароль")]
        public string Password { get; set; }
    }
}